//
//  ZQNewViewController.m
//  BuDeJie
//
//  Created by 仲琦 on 16/3/31.
//  Copyright © 2016年 仲琦. All rights reserved.
//

#import "ZQNewViewController.h"
#import "ZQSubTagViewController.h"

@interface ZQNewViewController ()

@end

@implementation ZQNewViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor yellowColor];
    [self setNavigationitem];
    
}

- (void)setNavigationitem
{
    UIBarButtonItem *item = [UIBarButtonItem itemWithImage:[UIImage imageNamed:@"MainTagSubIcon"] highImage:[UIImage imageNamed:@"MainTagSubIconClick"] target:self action:@selector(leftButton)];
    self.navigationItem.leftBarButtonItem = item;
    
    self.navigationItem.titleView = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"MainTitle"]];
    
}

- (void)leftButton
{
    ZQSubTagViewController *subTag = [[ZQSubTagViewController alloc]init];
    
    [self.navigationController pushViewController:subTag animated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
